import logging

log = logging.getLogger(__name__)

class SimpleMiddleware(object):
    def process_request(self, request):
        ip_s = request.META['REMOTE_ADDR ']
        log.info("from ip : {} ".format(ip_s))
        return None

    def process_response(self, request, response):
        return response
